package month3.day29;

public class Java extends Teacher {
    private String adept;

    public Java(String name, int age, int teach, String sex, String adept) {
        super(name, age, teach, sex);
        this.adept = adept;
    }

    public String getAdept() {
        return adept;
    }

    public void setAdept(String adept) {
        this.adept = adept;
    }

    public void selfIntroduce() {
        super.selfIntroduce();
        System.out.println("Java老师擅长" + adept);
    }

    public void giveLession() {
        super.giveLession();
        System.out.println("用idea上课");
    }
}
